document ready without jquery

47

javascript wait for document load -

document.addEventListener("DOMContentLoaded", function(event) { 
  //do work
});

document ready without jquery -

document.addEventListener("DOMContentLoaded", function(event) { 
  //do work
});

Comments

Submit
0 Comments